<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>资方祥情</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/axios.min.js"></script>
    <script src="/js/vue.js"></script>
    <script src="/layui/layui.all.js"></script>
    <style>
        .iscall_personal {
            width: 100%;
        }

        /*.iscall_personal tr td{*/
        /*text-align: center;*/
        /*border-bottom: 1px solid #ccc;*/
        /*border-left: 1px solid #ccc;*/
        /*}*/
        /*table tr:nth-child(1) td{*/
        /*border-top: 1px solid #ccc;*/
        /*font-weight: bold;;*/
        /*}*/
        /*.br{*/
        /*border-right: 1px solid #ccc;*/
        /*}*/
    </style>
</head>
<body>
<div id="app">
    <table class="layui-table" lay-even lay-skin="row">
        <thead>
        <tr>
            <th><h2>基本信息</h2></th>
            <th></th>
            <th></th>
            <th></th>
            <th></th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th>充值金额</th>
            <th>注册用户</th>
            <th>申请人数</th>
            <th>放款人数</th>
            <th>放款金额</th>
        </tr>
        <tr>
            <td>[[detail.charge]]</td>
            <td>[[detail.users]]</td>
            <td>[[detail.userapply]]</td>
            <td>[[detail.paycount]]</td>
            <td>[[detail.paymoney]]</td>
        </tr>
        </tbody>
    </table>
</div>

</body>
<script>
    var sign = '{{$sign}}';
    var vue = new Vue({
        el: '#app',
        data: {
            detail: ''
        },
        delimiters: [
            '[[', ']]'
        ],
        mounted: function () {
            this.detailData();
        },
        methods: {
            detailData: function () {
                vm = this;
                axios.post('/admin/clients/detail/show', {
                    sign: sign
                }).then(function (response) {
                    var obj = response.data;
                    if (response.status == 200) {
                        vm.detail = obj.detail;
                    }
                }).catch(function (response) {
                    console.log(response);
                });
            }
        }
    });
</script>
</html>